Docs
delete https://api.affiliates.iugu.com/campaign_affiliates/{campaign_id}/{affiliate_id}

Remove afiliado da campanha

Sem ações implementadas definidas

Request

Path variables

campaign_id

Required

Type: string

ID da campanha

Ex: 7FLqqKqggYFxt1nk2NW3jw

affiliate_id

Required

Type: string

ID do afiliado

Ex: 1Y7fL0IL1aJjfSt3Dp4GNO

Headers

workspace_id

Required

Type: string

Identificador do workspace

Ex: 4fHECmQtLdROI4fDLWMiLd

Response

200

OK

message
String

Mensagem de sucesso ao remover afiliado da campanha

Ex: Relationship between campaign and affiliate deleted successfully.

Example
1
2
3
{
  "message": "Relationship between campaign and affiliate deleted successfully."
}

422

Unprocessable Entity

campaign
Array of strings

Ex: ["must exist"]

affiliate
Array of strings

Ex: ["must exist"]

Example
1
2
3
4
{
  "campaign": "[\"must exist\"]",
  "affiliate": "[\"must exist\"]"
}

401

Unauthorized

status
String

Ex: 401

title
String

Ex: JWT VALIDATION ERROR

detail
String

Ex: Signature has expired

Example
1
2
3
4
5
{
  "status": "401",
  "title": "JWT VALIDATION ERROR",
  "detail": "Signature has expired"
}

500

Internal Server Error

status
String

Ex: 500

title
String

Ex: Internal Server Error

detail
String

Ex: Internal Error, try again later

Example
1
2
3
4
5
{
  "status": "500",
  "title": "Internal Server Error",
  "detail": "Internal Error, try again later"
}